<template>
    <div id="home">
        <el-container>
            <el-header>
                <el-button
                type="danger"
                @click='signout'
                >
                    退出
                </el-button>
            </el-header>
            <el-container>
                <el-aside width="200px">
                     <nav-aside/>
                </el-aside>
                <el-main>
                    <router-view/>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>
<script>
import NavAside from './NavAside'
import PermissionManage from './system/PermissionManage'
export default {
   
    methods:{
        signout(){
            localStorage.clear();
            this.$router.push('/Signin');
        }
    },
    components: {NavAside,PermissionManage}
}
</script>
<style lang="scss" scoped>
      .el-header{
    background-color: rgb(56, 120, 204);
    color: rgb(87, 50, 50);
    text-align: center;
    line-height: 60px;
    .el-button{
        position: absolute;
        right:20px;
        top:10px;
    }
  }
  
  .el-aside {
    background-color: rgb(231, 109, 185);
    color: #333;
    text-align: center;
    overflow: hidden;
  }
  
  .el-main {
    background-color: #FFFFFF;
    color: #333;
    text-align: center;
    height:100%;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
</style>
